var express = require("express");
var router = express.Router();
const reactAdmin = require("../module");

router.use(reactAdmin.countIP);
router.post("/getmessage", reactAdmin.getMsgList);
router.post("/login", reactAdmin.login);
router.get("/getmenu", reactAdmin.getMenu);
router.post("/addmenu", reactAdmin.addMenu);
router.post("/addmessage", reactAdmin.addMsg);
router.get("/getpower", reactAdmin.getPower);
router.post("/delmenu", reactAdmin.delMenu);
router.post("/getmenuinfo", reactAdmin.getMenuInfo);
router.post("/editmenuinfo", reactAdmin.editMenu);
router.post("/getiplist", reactAdmin.getIP);
router.get("/getvisitordata", reactAdmin.getVisitor);
router.post("/getuserlist", reactAdmin.getUserList);
router.post("/getuserinfo", reactAdmin.getUserInfo);
router.post("/edituserinfo", reactAdmin.editUser);
router.post("/adduserinfo", reactAdmin.addUser);
router.post("/edittype", reactAdmin.editType);
router.post("/addtype", reactAdmin.addType);
module.exports = router;
